fix: Corrige envio da apiKey da instância nos payloads do Flowise e do Dify#1486
Merged
DavidsonGomes merged 2 commits intoEvolutionAPI:developfrom May 22, 2025
oriondesign2015:develop
Merged
fix: Corrige envio da apiKey da instância nos payloads do Flowise e do Dify#1486DavidsonGomes merged 2 commits intoEvolutionAPI:developfrom oriondesign2015:develop
DavidsonGomes merged 2 commits intoEvolutionAPI:developfrom
oriondesign2015:develop
Conversation
Corrige o envio da apiKey no payload do Flowise para usar a apiKey específica da instância ao invés da apiKey global do sistema.
Corrige o envio da apiKey no payload do Dify para usar a apiKey específica da instância ao invés da apiKey global do sistema.
Contributor
Reviewer's GuideThis PR updates the Dify and Flowise chatbot integration services to use the instance-specific API key (instance.token) instead of the global system key when constructing request payloads. Sequence Diagram: API Key Usage in Chatbot Service RequestssequenceDiagram
participant ClientCode as "Client Code"
participant ChatbotService as "ChatbotService (Dify/Flowise)"
participant ExternalPlatform as "External Chatbot Platform (Dify/Flowise)"
ClientCode->>ChatbotService: callMethod(..., instance, ...)
activate ChatbotService
ChatbotService->>ChatbotService: apiKey = instance.token
ChatbotService->>ChatbotService: Construct payload with apiKey
ChatbotService->>ExternalPlatform: Send Request (payload with apiKey)
activate ExternalPlatform
ExternalPlatform-->>ChatbotService: Response
deactivate ExternalPlatform
ChatbotService-->>ClientCode: Return result
deactivate ChatbotService
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Corrige o envio da apiKey nos payloads do Flowise e dify para usar a apiKey específica da instância ao invés da apiKey global do sistema.
Summary by Sourcery
Use instance-specific API keys in payloads for the Dify and Flowise chatbot integrations instead of the global system API key.
Bug Fixes: